package com.wtwd.device.model.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.wtwd.device.model.entity.DeviceSleepRecordInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

@ApiModel(value = "DeviceSleepRecordVo对象", description = "")
public class DeviceSleepRecordVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "睡眠记录总表主键id")
    private Long id;

    @ApiModelProperty(value = "设备唯一标识主键id")
    private Long deviceId;

    @ApiModelProperty(value = "开始时间 yyyyMMdd")
    private String startTime;

    @ApiModelProperty(value = "结束时间 yyyyMMdd")
    private String endTime;

    @ApiModelProperty(value = "深度睡眠时长")
    private Integer deepSleepLen;

    @ApiModelProperty(value = "浅睡时长(分钟)")
    private Integer lightSleepLen;

    @ApiModelProperty(value = "清醒时长(分钟)")
    private Integer wakeUpLen;

    @ApiModelProperty(value = "REM(快速动眼)时长(分钟)")
    private Integer remSleepLen;

    @ApiModelProperty(value = "序列号")
    private String number;

    @ApiModelProperty(value = "设备上传时间 yyyyMMdd")
    private String time;

    @ApiModelProperty(value = "睡眠记录日期 yyyyMMddHHmmss")
    private String uploadTime;

    @ApiModelProperty(value = "睡眠分期次数")
    private int sleepStageCount;

    @ApiModelProperty(value = "数据来源 0设备  1app")
    private Integer type;

    @ApiModelProperty(value = "睡眠记录详细时间")
    private List<DeviceSleepRecordInfo> infos;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Integer getDeepSleepLen() {
        return deepSleepLen;
    }

    public void setDeepSleepLen(Integer deepSleepLen) {
        this.deepSleepLen = deepSleepLen;
    }

    public Integer getLightSleepLen() {
        return lightSleepLen;
    }

    public void setLightSleepLen(Integer lightSleepLen) {
        this.lightSleepLen = lightSleepLen;
    }

    public Integer getWakeUpLen() {
        return wakeUpLen;
    }

    public void setWakeUpLen(Integer wakeUpLen) {
        this.wakeUpLen = wakeUpLen;
    }

    public Integer getRemSleepLen() {
        return remSleepLen;
    }

    public void setRemSleepLen(Integer remSleepLen) {
        this.remSleepLen = remSleepLen;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(String uploadTime) {
        this.uploadTime = uploadTime;
    }

    public int getSleepStageCount() {
        return sleepStageCount;
    }

    public void setSleepStageCount(int sleepStageCount) {
        this.sleepStageCount = sleepStageCount;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public List<DeviceSleepRecordInfo> getInfos() {
        return infos;
    }

    public void setInfos(List<DeviceSleepRecordInfo> infos) {
        this.infos = infos;
    }

    @Override
    public String toString() {
        return "DeviceSleepRecordVo{" +
                "id=" + id +
                ", deviceId=" + deviceId +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", deepSleepLen=" + deepSleepLen +
                ", lightSleepLen=" + lightSleepLen +
                ", wakeUpLen=" + wakeUpLen +
                ", remSleepLen=" + remSleepLen +
                ", number='" + number + '\'' +
                ", time=" + time +
                ", uploadTime=" + uploadTime +
                ", sleepStageCount=" + sleepStageCount +
                ", type=" + type +
                ", infos=" + infos +
                '}';
    }
}
